import java.util.ArrayList;

public class MouseinaMaze extends SearchProblem
{
	public MouseinaMaze(Board board)
	{
		this.initState = board;
	}

	ArrayList<Action> actions(Board initState)
	{
		return initState.getActions();
	}
	
	boolean isGoal(Node node)
	{
		Board state = node.state;
		
		if(state.getBlock(state.board[2][5]) instanceof Mouse)
			return true;
		
		return false;
	}
	
	int pathCost(Node node)
	{
		int cost = 0;
		Board state = node.state;
		
		while(state != this.initState)
		{
			cost++;
			state = node.parentNode.state;
		}
		return cost;
	}
}
